<template>
  <div
    class="switch-button-container"
    :style="{
      borderBottom: active ? '2px solid #285fce' : 'none',
    }"
  >
    <div
      class="title"
      :style="{
        color: active ? 'black' : '#555555',
      }"
    >
      {{ title }}
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      required: true,
    },
    active: {
      type: Boolean,
      default: false,
    },
  },
};
</script>

<style lang="scss" scoped>
.switch-button-container {
  $height: 54px;
  width: 11vw;
  display: flex;
  justify-content: center;
  align-items: center;
  height: $height;
  font-weight: 450;
  cursor: pointer;
  .title {
    line-height: $height;
    height: 100%;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
</style>
